/*    */ package server.events;
/*    */ 
/*    */ import client.MapleCharacter;
/*    */ import tools.Randomizer;
/*    */ 
/*    */ public class MapleOla
/*    */   extends MapleSurvival {
/*  8 */   private int[] stages = new int[3];
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public MapleOla(int channel, MapleEventType type) {
/* 14 */     super(channel, type);
/*    */   }
/*    */ 
/*    */   
/*    */   public void finished(MapleCharacter chr) {
/* 19 */     givePrize(chr);
/* 20 */     chr.finishAchievement(21);
/*    */   }
/*    */ 
/*    */   
/*    */   public void reset() {
/* 25 */     super.reset();
/* 26 */     this.stages = new int[] { 0, 0, 0 };
/*    */   }
/*    */ 
/*    */   
/*    */   public void unreset() {
/* 31 */     super.unreset();
/* 32 */     this.stages = new int[] { Randomizer.nextInt(5), Randomizer.nextInt(8), Randomizer.nextInt(15) };
/* 33 */     if (this.stages[0] == 2) {
/* 34 */       this.stages[0] = 3;
/*    */     }
/*    */   }
/*    */   
/*    */   public boolean isCharCorrect(String portalName, int mapid) {
/* 39 */     int st = this.stages[mapid % 10 - 1];
/* 40 */     return portalName.equals("ch" + ((st < 10) ? "0" : "") + st);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\events\MapleOla.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */